package com.sxhalo.fsms.mapper;

import java.util.List;

import com.sxhalo.fsms.domain.FactDevice;
import org.apache.ibatis.annotations.Param;

import com.sxhalo.fsms.domain.FactDeviceAlarmRule;

public interface FactDeviceAlarmRuleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(FactDeviceAlarmRule record);

    int insertSelective(FactDeviceAlarmRule record);

    FactDeviceAlarmRule selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(FactDeviceAlarmRule record);

    int updateByPrimaryKey(FactDeviceAlarmRule record);
    
    int getCount(@Param("where")String where);

    List<FactDeviceAlarmRule> findWhereList(@Param("where")String where, @Param("order")String order);

    List<FactDeviceAlarmRule> findPagerList(@Param("start")Integer start, @Param("length")Integer length, @Param("where")String where, @Param("order")String order);

    int getMaxId();
    
    int batchInsert(@Param("record") FactDeviceAlarmRule record, @Param("ids")  String[] ids);


    int batchUpdate(@Param("record") FactDeviceAlarmRule record, @Param("where")String where);
}